import request from '@/utils/request'

const api = {
    org: '/system/org'
}

export function getOrgTree(parameter)
{
    return request({
        url: api.org + "/treeselect",
        method: 'get',
        params: parameter
    })
}

export function getOrgList(parameter)
{
    return request({
        url: api.org + '/list',
        method: 'get',
        params: parameter
    })
}

//获取当前单位和二级单位
export function getCompanyTreeAndSubCompany()
{
    return request({
        url: api.org + '/getCompanyTreeAndSubCompany',
        method: 'get',
    })
}